fixed major bug in branch comparison

the old code did a string comparison with == which is obviously wrong.
fixed checkstyle
Merge branch 'fix-comparison'
fixed parameter expansion when determining change log