Removed type hinting and fixed some basic errors.