added base source code, documentation updated