Removed by ref method call.

A by ref call on a method throws an error under strict settings. This fixes that problem.
Merge pull request #4 from lrezek/patch-2

Removed by ref method call in decode()
Merge pull request #1 from 2tvenom/master

First array shift fix.