Update genericroutines.sh

Addition of global macros and color output option.