Fixing array assignment bug
renaming fields in documentation.