Extended factory tests
Updated usage of factory
updated to new factory interface
updated example to new factory interface
updated readme and styled interface