Initial Commit for thesis code