added $XDG_DATA_HOME and changed $LOC to $DATADIR