updated com class
added url check to Com class
implementing Com class
organizing imports