updating master branch 20130926

when making a new comment the public checkbox is not checked
automatically. re arranged the code to address this issue.