restruct code layout

change directory 'EM' to 'code'