added gitignore
better platform check
pep8 fix
ignore less pep8 violations