adding windows parse file
added error reporting
removed unnecesary printfs