fixed some errors, added compass and rails functions