Added folder movement to SGDocumentManager and fixed up SGDocument