Finished base hdk module functionality. Probably, this needs more testing and code polishing, but at this stage it just works.