Initial import of Commet code