Fixed some small bugs, improved the RPM build spec file.