added some comments, added some unit measure checking before converting