document API methods + fix getExtraParameters()