added predict function and documentation on functions