Commenting and Boolean Change

Changed the boolean function. Added boolean variable, and return value
for function. Improved some of the commenting.