Code cleanup

minor tidyups to comments, passing as reference where not required & unused params