updating javadoc and throwing bad req exception when the cubename is not correct