Added comments for algorithm. Added constant for linspaceSize. Included commented code in report.