Atma falsely superimposing the body and others which are not Self upon Himself, and identifying Himself with them – this identification forms the bondage of the Self.
The freedom from false identification of Self is Moksha.
Avidya is that which causes the false identification of Self.
Vidya is that which removes the false identification.
The idea of pleasure is that modification of the mind known as love. The idea of pain is that modification of the mind known as hate. The cause of pleasure and pain are sound, touch, form, taste and odor.