fixed cpu test...
updated gitignore
Cleaned up and formatted code