Made script a bit more readable
Made some changes...
Merge pull request #1 from xeregin/master

FUNCTIONality