Fixed some spelling mistakes in comments and log messages
Fixed a couple of missing parameter bugs in function calls using GSIs