Hopfield modified. Main function has been cleaned up. Made it more modular. testHop - test file, not finished yet.