added formatAttribute method to model
updated readme to formatAttribute