fixed bug and added case study documentation