some refactoring, code cleaning and documenting the code
inline css moved into the css file
refactoring
refactoring