Fix increment bug due to improper cast

Add readme