Added Krysta's source code, with my prelim edits based on QIC referee feedback.