moved auxiliary functions to Misc
ignoring new compiled modules
general cleanup and comments