updated Documentation
added functions