changing the parse function to match the default implementation
about to replace teh parse function with that from the default library
 test new version of parse function
passes preliminary tests,but more testing required
extra print statements need to be removed
removed extra print statements