gitignore to ignore phpstorm files
many changes

die replaced with exceptions
echo not saved to messages
added phpdoc to all props and methods
code style changes
style change