Initial commit

First commit to github. This branch is ported from local repository and
will now be integrated to the public repo.