Fixed bug that prevented the last line from being saved. Added hand cursor and icon border when using drag tool. Cleaned up some code.