Added front end interface, updated some code to make things more usable.