Add slice function for safe substring operations
Fix slice function so that length can be ommitted
Add Sonatype publish configuration
Update README