Removed unused code.
Splited big file into smaller, better readable files.