add utility function "useallstars", cleaned up a bit, and fixed two flag bugs