added diagnostic output, bumped version to 0.3