Theoretical description of molecule-metal interaction and surface reactions