Web template ready, added support for additional --debug flag