removed testing for ruby 1.8.7 and updated some errors for best practices