Tidied up the code slightly, added really basic stat tracking. Added commands