My modified version of Ross Fadely's star/galaxy classification code.