args fix
fix args mismatch, debugs and erros, and added comments