Make sure sources always create sprites at correct times
Better documentation and test coverage reporting
Remove redundant code in random number generator