Fixing bug to strip trailing whitespace in comments; getLastEditByUser had start and end times reversed