Eliminated all definitely dead code. Added handling a pinfile, added pausing during execution (but not a complete program quit and resume)