emplacing log conventions, removing print statements, narrowed down cause of SegFault