IRSA partial refactor; changed tests and polygon parsing substantially