removed run-time notices and some warnings
fixed some more runtime notices
Merge pull request #26 from idleberg/1.0-dev

removed run-time notices and some warnings