Added Single Definition Functionality

Other bug fixes - double click for def on main page working.