Refactored some variable names and added comments for the extra parse function
Fixed compile errors and comments