Clean and update build output more intelligently

Fixes #183.
little picky but please put a blank line above the return to set it apart a bit