Added missing semicolons.
Added code to main.  Errors are coming from the section that is commented out.