Refactor the book class. Adds a constructor which handles cleaning. Outputs to JSON file. Dumps JSON to index file. Closes #45