Merge pull request #23 from lioncash/sorta-large-input-cleanup Larger cleanup to input-related source files (this time using unique_ptr).