some cleanup and small changes

Signed-off-by: Alexander Skjolden <alex@plastboks.net>