Refactored some code & made algorithm-source-code viewable.