Wrote tests to stress test and everything. Looks good for submission once I check that it compiles on unix.