Compatibility

Fixed compatibility issues with Laravel 4.1 and some typos.