PEP8 code formatting, typos fixing

I fixed a few typos (childs -> children, slibings -> siblings), performed a code formatting due to PEP8 style guide and added some comments.