added license, refactored styles