Corrected infinite loop issues
Added drawing svg feature
SA executed until no overlapping is obtained
Fixed positioning bug