Fixed incorrect instantiation, calling functions incorrectly, spelling