added out.filename property
added basic exaples