Added DetailActivity and cleaned up parsing code