Updated SRC. 17/01/2013

Changelog : 
- Rewrote most of the code.
- Wrote the source in OO style.
- Fixed few typos.
- Optimized code. ( Source is shorter )