Added better error handling.
Added Model.
Repaired token retrieve.
Added go to previous screen on error.