modes documentation

Added documentation for modes