removed edgebase
corrected compilation errors. found seg faults :D