fix warnings
added namespace nanounit, exception test use local variable, clean up
macros just suck
clean up
Merge pull request #1 from aggsol/master

Fixed warnings