Code improvement

Fixed some Code
Added dealloc method and some other methods to release the alert since ARC is not used.
Shortened Code and made things easier (Number Pad input)