Edited if and added documentation in generate.rb
Merge branch 'master' of github.com:neonowy/apm-repo