Added angular_module_namespace and corrected singlefile compilation

Also added an output directory configuration option