move ordering of svg elements around
add docs, remove some vestigal bits