added loadfile classmethods/Started working on encoding/Constants fixed etc