cleaned some code
code cleaned
added some comments