adding the main source, will not compile until headers are made available, pending paper acceptance