Initial data parser made in scala (needs loads of work)