- also removed duplicate code in flags.js,
- and rebuilt api,
- and ammended .gitignore to exlcude node_modules.