mostly final code no comments
added code and files