Added description
Fixed frame margin & border bug
Refactored code to improve readability