Add reference fix

Moved add reference options out of the TOC. Made them work better with
the add method