Cleaned up. checked the mallocs. Success.