Ranging and monitoring implemented. Added documentation comments for JavaScript.