Final code for University of Chile-Harvard 2014 Exchange Workshop on big data in astronomy