made snapshotting much faster, removed unnecessary computing for train/test
put makefile back
Merge pull request #175 from hal3/master

fast snapshotting, removed unnecssary computation