Added sim.py and nn.py and a readme