Fix Perl::Critic and spelling errors

Resolves #10