To add an Application to the dock, go into the Applications folder and drag it down onto the Dock. You can move it to any location you like on the Dock; you’ll see the other icons shift and move to make room. If the Application is only showing up on the Dock when you open it, right click (ie. control-click or two-finger-click) the icon for that application, then select Options > Keep in Dock. Once it’s in the Dock you can move the icon to another location that you prefer. To remove an item, drag it away from the Dock and drop it (so it goes poof). To add a document or folder to the Dock, drag it to the right of the divider near the Trash.