Preconditions class added (contains of useful initial check methods).