updated tomdoc for custom scripts