major bug fixes, got basic dot example working