Minor change to comments in code
Add function to check if an operator is first or last within parentheses
Fix bug where program would continue on even though there was an error with the user's input