Copy and paste the full error messages here and indicate which line of code they relate to.

--- Update ---

Take a close look at the setMinimumBalance and deposite methods. Something missing?
...