javadocs added, enum for magicnumber