Assignments & attachments fixes!

A lot of new changes and bug fixes!