Code for my paper submitted to TWireless in Spring 2014