Improved code formatting, fixed sign blinking on placement

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>