simplify copying ramdisk, cleanup & reorganize

Change-Id: Icd9f4c50566c33ec0c5cb5529f9921f7e72d72f5