First commit with source code ported for open-source development