Upgrade to a multimodule project, remove some useless files (in cmd directory) and fix some EOLs