Final commit. Added functionality for random seeding, added comments.