Add documentation
Add expand paramater functionality by peakpado.