Typos and bugs

Signed-off-by: Suki <suki@missallsunday.com>
Fix a lot of array keys

Signed-off-by: Suki <suki@missallsunday.com>
Another bunch of changes

Signed-off-by: Suki <suki@missallsunday.com>
Don't need to load the status ID twice

Signed-off-by: Suki <suki@missallsunday.com>
Fix the comments template function

Signed-off-by: Suki <suki@missallsunday.com>