added documentation, changed some argument apis