Documantation and basic control added to SAM