Added semantics and dot resolution. Started on functions