To learn the purpose of a particular building, open the Store (button with the picture of a hammer in the bottom left corner) and find the building you are interested in. You will see the "i" symbol in the top corner. Press it to see more detailed information about the object.