initial commit of the code

no known bugs are present