Now can add LegMarks
some bugs fixed