Added docs and moved inline strings to constants

Added doc for input parameter options and moved inline strings to constants. Fixed minor javadoc error Weighted.java