Added flags and makefile