getFlag now accepts string on parameter
Started working with flags and functions
Minor changes