moved . to , since . is used to repeat last command
added function to clear registers