Fix various issues from code review

Signed-off-by: Byron Ruth <b@devel.io>