better error handling, whitespace fix -- still no clue if this comes close to compiling, waiting on boost