add comments and handling for primitive case
add comments and handling for primitive case

Caleydo/caleydo_server,phovea/phovea_server,phovea/phovea_server,Caleydo/caleydo_server,phovea/phovea_server,phovea/phovea_server