fixed little bug
added parameters parsing
added comment