Some formatting.
Added unittest concept. Fixed some errors in common.h. Added unittests for the vector implementation.