rewrote most parts & updated to 1.8
updated examples for last commit