Fixed integer parsing. Minor whitespace fixes. Exposed parse function that doesn't need a file