fixing permissions leftover from Git PHP lib interaction
Convert code blocks (en masse)
added comments and params
updated code and used the correct way to "extend" a helper
Please don't berate me for editing the core files, but if you must....