clean up in source
Update to build files
start_macro function update to do batch processing, plus small code cleanup
clean up in datautils.py