General Changes

Added item to TODO.
Enabled perl warnings.
- Misc. Code changes to run cleanly.
General code readability optimizations.
Fixed Weight output bug in comments().
Optimization and bug fix in xml_update().