Updated repository

* updated headers
* removed trailing whitespace
* removed unused code from source
* changed guides and licenses from rest to markdown for better viewing on github
* changed a few conditional checks for find functions
* changed key generator functions

That's as far as I got this afternoon. You might want to go through the code to enhance readability further and check inter-script-functionality.