small fixes here and there
fixed a couple of compiler warnings
added a missing file