added -v and -h flags handling, staring to work on synonyms