[WIP] Add coments. Rename few funtions, delete useless stuff