Refactored code
Fixed withdrawal refresh bug

Also removed debug lines
Removed debug lines
More refactoring