big fix
fixed example
deleted residual stuff