Made Publication implement Comparable and Comparator, fix some warnings, add more documentation