Cleaned up some formatting and removed errant console.logs
Updated version