Fixed usage of undefined variable

Removed useless declaration

Fixed undefined variable usage

Remove useless var

Fixed missing use

Fixed double ;

Fixed wrong method name

Fixed duplicated semicolon

Fixed wrong var_dump for exception

Fixed throwed exception
Merge pull request #85 from Nek-/fixes

Fixes