The 3 basic elements of music are rhythm, harmony, and melody. My harmony and melody chops are decent, but rhythm is the least developed of my skills. To remedy this, I've been studying up on the elements of a good drum loop and elements of the groove. "Sound on Sound" has a great 4 part article on this:
Here's the .pdf with all the examples:
https://www.soundonsound.com/pdfs/DrumProgramDiags.pdf (will take a bit to download)
I'm currently using a program called Hydrogen to program my drum loops. Hopefully within the next week or so, I'll be more comfortable creating basic drum rhythms for my looping.