timestamp.h: Fix header guard
Fix tests
separate definition and declaration

closes #3 and #4