Unit tests added and several minor changes. Also, autoloading is handled by composer now