added more debugging and fixed errors with numbers with commas not being parsed correctly