added some comments and renamed the factory for the actor apropietly