Fixed $current

Changed $current to be the actual current size, and added a $real to replace what I had used $current for. Also added comments.