Notes on Martingale Theory