added scala docs and worked on Options