Add rails 4 compatibility
Update documentation