Minor corrections on formatting to increase legibility. Also improved the reasoning for using function prototypes.