rename subdir to core
rename main to commandline'