Implemented update and remove methods in DetectorMongoDAO. Added checking for internal and external file sources in the generateMarkup method in DetectorHttpInterceptor. Cleaned up the code and comments in all files.