Fix a bug of reading trajectory

Add plotSD which plots the SD results