added primitive drawing to dot, fixes #15 and fixes #19