Added noFile, minor bug fixes, optional sample padding