added more doc and changed some func names