add doc dir, fix up package problem