Improved the hairpin finding algorithm and added some code for troubleshooting to the primer class.