update to latest 003amdtp code
fix compiler warnings (and possible initialization bug)