Refactor analyser.py, Make analysis result serializable.
Implement get partial profiles
Implement flag.py