Bug fixes in response to unit tests

Fixed issues with filenames, blank bit arrays, etc..