Every function now taken out of notebook
Added functions to take command line arguments
changed doGreenAnalysis to have the process layout
moved tests, now it works as a package!