Remove useless code and temporary files