writing architecture spec
updated arch doc