Add all pre-existing code

This is all the code I have. I am currently lacking Apache License
files, so I am in violation of the Apache license. I will add it as soon
as I have time.