Add more documentation, fix commandline slicing.