handling of environment

new way of generating markers
code cleaning

removing unnecessary code
bugfix + handling of env

taking care of NA in the data and introducing env