Performance Improvement, Notifications and Clean-up

Delayed the use of the square root function to reduce the number of
times it was used.
Added a completion time.
Included error message for when a PNG file isn't loaded correctly.
Code clean-up and commenting.