Bug correction
Bug correction, getErrors -> handleErrors
Final bug corrections. Now the new API works.