Slightly improved docs and dealt with some style warnings.