Fixed uppercase of RAD and added in some style changes to accomodate comments.