Update files with documentation

Added comments and cleaned files