Fix #137 and relative object positioning

I also fixed a few typos and improved some things.
It can cause a problem if you try to change the group when it's already set.