Added integer parsing, more error-checking

Also put everything in a new VS project so it will work.