Setting up the framework

Error trapping and logging is next!