Additions

* breaks main out into a separate executable
* adds appropriate runtime path information
* links main and tests against core library
* fixed issue when mpi flag wasn't set
* added install script