updatted thesis, added images of flow diagrams