Some updates

Fixed the indentation error, added some functions.
The code for lab 3 is almost complete, just need to add command line functionality 
to the last two steps in the lab.