Code cleanup

* Switch to standard uint64_t & int64_t data types;
* Remove unused modules.