Removed old files
Handle callback on main thread
Added documentation