added library
added avg and model
added docu