Add unit tests, remove Main class, ignore gradle files