Arguments validation in public classes, fixes #13