Initial implementations of functions done
initial de2 stuff