Code to reducing and analyzing data for Andromeda II