Restructured code, added data files.