This is the bread and butter of XBMC. If you are not using XBMC's library function then you are missing out.

XBMC already has a wonderful guide so there is no point in repeating what they have already said.

Adding Videos to the Library

There are certain OpenELEC specific configurations here.