add composer, travis, license, etc, fix code style