Add Test::Compile test and fix critic warning
Add gitignore file