Completed Error Handling
Expanded error handling
Edited Malloc Error handling in Parser