Fixed issue where documentation ignored parameters in some cases for #2.