Prototypes added in beginning of program. Comments added to subsequent functions.