Implement sourcecode type=
more stuff implemented
tweaks
doc updates