Added functions to change naos name.
Fixed some bugs.