removed some comment, cleaned up excess repetitive code; sucessful test on SDSS, 2MASS bug still retains