found problem, parent class not being recognized

File now also writes comments for debugging purposes.