Fixed if missing brackets (weird logic); added check for small input with no spiral poly (to be implemented differently).