bug with args parse and bug with parse function in function fixed, and some documentation added