Spacing and general code cleanup

Signed-off-by: John Rayes <live627@gmail.com>