started object oriented version of em3d. the algorithm is still not working.