Added possibility to have line or surface emmiter

When using arrays for the x and y fields in the init() function