Fixed random generator seed bug.
Fixed simulator to work on Linux.
Removed debug prints