Fixed several bugs:
 - An issue where the m-modes were not being generated properly if several chunks were needed.
 - Added a check to ensure that we only invert the SVD matrix if there were any non-zero modes.