Removling useless files and correcting start state