[0.6.0] improve factory pattern, hide private fields, bump

Signed-off-by: Eli Skeggs <skeggse@gmail.com>