Cleaned up code, added some text