Improved documentation.
Cleanup and made generic for any repository.