em400: MEGA, -k option, cleanups