added documentation and moved test scripts to test folder