Fixed a runtime bug and a test (commented out) for loading data from files and constructing the MainActivity layout