prim and new constructor

Implemented Prim and new constructor that reads from a file.  Main just
runs Prim