Derry man Kieran McCool in court on terrorism charges