move subs from bottom to top, and add a vim and shebang line