Refactored codebase for PSR/code style/5.4, optimized CSS