The invite button is now only enabled for boards. Added documentation to code.