Modified random number generator & other fixes
added gitignore

avoid adding checkpoints files.