main thing that got change in this commit is the function structure.
splited them into validation and misc for now.
remove some spaces from readme.md