User Class improved

Nevertheless , there are still lots of bugs :( .I think it will take
time to fix them.