NoteController rewritten by Swift
Deleted Unnecessary Code
Fixed some problems by migrating Swift