Add a readin function

By Huey