bunch of refactoring
added initial styleguide