cleanup; removed all compiler warnings and untested.. removed useless files