updated documentation and added script