Initial commit into the repository. Basic functions.
Cleaned obsolete code.