removed main function
started work on documentation