fixed bug
updated constructor
wrote docs