simplify copying ramdisk, cleanup & reorganize

Change-Id: I9bc3843cd0684bc2ad0e16e6f09bfa81b83e41d1