Refactor todo demo,added crash report etc.