Cleaned up code and changed book text