adds some documentation to module code, moves css into its own file