Finished createHeapFile. Not too sure on setting dity bits though.