refactoring
generate pictures for documentation