cleaned up code and added ramv, ramdata, ramtag