Fixed Errors in the code. One error remaining.