Typo in argument, should be defined as string
Some additional documentation and cleanup