add .gitignore and test.py
Set gitignore to ignore *.pyc files
Add serial test function