ignore composer.lock and fix some coding styles