GNU-ified the source code and enhanced readability of the code