bug fix
fix intitialization code
documentation