Improved comments and added run time calculation.