Did a number of changes. App is usuable from front end, but need to add
saftey checks in the executable itself.