added diagram file, code updates and added something for documentation