refactored ceci so its varnames make more sense

Also refined some of the functions