breaking apart nandsim-exe

Change-Id: I38cb85a9b8a26698e79aa95a49b4e289e10977ab