Theis finilzation

includes finalization to code for thesis