Creation of the mdk class
minor improvements
more additions
Base class and functions