More refined environment, ceded added but has problems, more functions are imported from old repo and renamed to match current