- added descriptive comments to the code - removed redundant function prototype - removed unused function argument