clears up a reference error when cannot gen key

formats documentation for registerComponent
bumps to 0.4.1