Added comments and fixed a bug
Merge remote-tracking branch 'origin/master' into weightConverter