Update docs & example, remove reliance on classes