added GUI, TODO document-query similarity function