Minor modifications to dictionaries

They now use brackets ([]) rather than braces ({}) to reference items.
Also, fixed an error in assignment to dictionaries.