code, doc, updates; pysmallk hooks