Added descriptive comments.
Improved code readability.
Generate more aggressive test-data.
Added some stdlib code for comparability.
Made the "manual test" easier to run.