Added more comments in core codes; added alpha and alphaDash validations