Fixed little typos and errors in the code... it should now compile