refactored ajax method
updated documentation and refactored
new build