added near and far function description
restructuring a tests
nodejs/deployer almost DONE. Need more tests and bugfixes