Removed bibliography from TOC as it was causing trouble. Put references section in a separate page at the end of the document