added docs directory, cleaned up software side into function calls