initial code commit
(december 2013 version)