Refactored submit function
Commented new functions and fixed duplicate data stackmob bug