add encodes to movie factory
minor cleanup
move factory_attributes to helper where it belongs
add comment factory