Updated doc plus fixed typos

Updated the documentation on how to register a new plugin and the base code for a new one. Also fixed some typos.