Reordered most of the functions in the main lazypile elisp script.