Add .PHONY to Makefile
Simplify help print by using HEREDOC
Fix some indents and extra spacings
Properly quote variables and arrays
Use bash builtin [[, simplify some code
Further simplify code with err() function