code style fix
add unit.cpp to keep unit.h sane