added functionOnce
update documentation for function.once()