RT coding guidelines & permissions update

* Removed all spacing and replaced with correct tabbing
* reduced permissions on file from 755 to 644
* Corrected functions to conform to Racktables coding guidelines