Initial commit

known memory leak in some of the file polling operations, but committing
something finally.