Started adding unit tests, other small changes