added simple thread layout creation function
modified ramdiskloader