Added ignore line for ignoring .idea PyCharm folder.
BUGFIX - if we have more than one port after 'eq', deleting parts in for loop is bad idea.
Some visual improvements, PEP8 changes and refractoring names.