Moved some functions to utils, added file output
moved non-bayes things to proj_utils