Updated with alternative run method

Allow testing of optimized version as well as dev and auto compile when developing.