Add method documentation
Improve some specs
Fix specs in ruby 1.8