Adding plite tests, fixing resulting bugs.
Adding .git ignore.