Separated the code required to interface with the command line from the rest
Added bin/photon