Begun application code logic and UI

Begun application code logic and related UI, adding factory functions
where needed, removing unnecessary constructors