Convert attributes to hash, add a case-statement and add additional info to the readme file