Added other functions and completed main

The project is almost complete.  It just needs to be tested.