Simplified the arrangement of source files.
Removed the dependency on pstdint.h except for HDE.