Updated minor errors in code.