simplify copying ramdisk, cleanup & reorganize

Change-Id: I319513600ab43fc3f4983db9201d7fac1d35b1d4