Be more lenient when there is no res.out
Code cleanup and consistencyjj:w
Release v0.0.6