Code related to 2013 Coop with Prof. Feiguin