use JSON_PRETTY_PRINT for writing json in files,closes #2
remove remaining composer dependencies
prevent optimizing an already optimized repository