major refactoring to separate headers from objects in app layer
small fix for con bit
fixs for AVR build