Added test file and outlined the major steps of the algorithm in comments