Update PassGen.java

added comments and improved concatenation