adding, deleting, currently an undefined variable error
Added comments and converted tabs to spaces.