revised the source code based on patajons.paranyo standards (conventions, naming, etc.)