Made read function
Converted addresses to integers. Going to make DM now