Documentation on Serial added and some code simplication