Core & Error Handling

Added a basic main class and a functional error handling and reporting
system.