Made program more robust. Added a main class that adds a little interactivity. Needs to be debugged.