fixing bugs, implementing missed behaviour, editing README.md
fixing bugs