Improve build system, remove unnecessary files and other minor changes