fixed typos & whitespace

Signed-off-by: Joshua Paling <joshua.paling@gmail.com>