Added ability to restart. Rudimentary longopts. Code flow alterations.