If you would like to know more about karma, you can read the fourth chapter of the Abhidharma-kosha-shastra, which clearly explains the workings of cause and effect. - Quote from The Right View, "On Cause and Effect"