Added main script and documentation