Code was optimized

Added css file, variables were made static, names of functions and
variables were changed to conventions style.