Refactoring into modules and objects. New hardware control object.
moved pin definitions to configuration.h