Changed format, fixed some syntax, added doc strings