replaced awk with cut to save resources
addded copyright notice
Tried to implement best practices from http://mywiki.wooledge.org/BashGuide/Practices
Added some more comments
Added info in readme about intention of this project

Details:
* set shebang according to coding best practice
* replaced '[' tests with '[[' where possible
* added some quotes around strings
replaced several || constructs to check for different casing with tr statement to normalise arguments
removed hostname parameter which was not used anyway
added information about intention of this project mentioned but not commited in previous checkin