Window changes, function prototypes

Added updates to handle global variables, descriptions to functions as
well as added prototypes for basic mathematical functions.