Added many new features and fixed the home function.