Sanitized Main Input

Sanitized all input in main()
Updated Javadocs