Some fixes for the Book Library app chapter

Fixed some typos and inconsistencies and corrected code formatting.